<%-- 
    Document   : kosikInfo
    Created on : 1.6.2011, 10:06:45
    Author     : papa
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div class="hlavni_text">
    <h2>Košík</h2>
    <div>
        <h3>Zboží v košíku</h3>
        <table>
            <tr>
                <th>Značka</th><th>Název</th><th>Cena</th><th>Odstranit</th>
            </tr>
            <c:forEach items="${sessionScope['uzivatel'].kosik.zboziVKosiku}" var="polozka" varStatus="status">
                <tr>
                    <td>${polozka.zbozi.znacka}</td><td>${polozka.zbozi.nazev}</td><td>${polozka.zbozi.cena}</td><td><form action="ControllerKosik" method="post"><input type="hidden" name="delete" value="${status.count - 1}"/><input type="submit" value="Odstranit"/> </form> </td>
                </tr>
            </c:forEach>
                <tr><td colspan="2"><form action="ControllerKosik" method="post"><input type="submit" name="objednat" value="Objednat"/></form></td></tr>
        </table>
    </div>
</div>
